

#ifndef _SHELL_REQMAILPLAYER_MESSAGE_H_
#define _SHELL_REQMAILPLAYER_MESSAGE_H_

#include "Message.h"
#include "Beans.h"
using namespace std;

class ReqMailPlayerMessage : public Message
{
	public:
	ReqMailPlayerMessage();
	~ReqMailPlayerMessage();
	void reset();
	ReqMailPlayerMessage* clone();
	static const int _ID;
	//玩家留言id(留言不能是自己)
	int64 playerId;
	//给玩家留言信息
	std::string msg;
	
	bool read_from(ByteBuf& buf);
    bool write_to(ByteBuf& buf);
    int getId();
};

#endif
